Create script to help developers avoid exceeding disk quota on LC#1613
Open
chapman39 wants to merge 4 commits into
Open
Create script to help developers avoid exceeding disk quota on LC#1613chapman39 wants to merge 4 commits into
chapman39 wants to merge 4 commits into
Conversation
Collaborator
Author
|
also i should mention i am aware of mpifileutils allowing you to remove directories in parallel. however, i could not for the life of me get it to work for this use-case, because of the sheer amount of files needed to be removed, i've been using regular |
white238
reviewed
Jun 5, 2026
| 0,20,40 * * * * crontab ${CRON_SCRIPT_PATH} | ||
|
|
||
| # Remove contents of Jacamar CI | ||
| 0 0 * * * srun -N1 rm -rf ${WORKSPACE_CI_DIR}/* |
Member
There was a problem hiding this comment.
This will cause builds to fail if they are running at night. I recommend only deleting things that are of a certain age.. like a day or two old.
chapman39
commented
Jun 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Now that we are using Hubcast, CI will run as the developer who pushes the commit, merges the branch, etc. Because of this, each Smith developer is at risk of exceeding disk quota. This script helps prevent that by doing the following two things
I'm sort of worried that people will create conflicting cron jobs across multiple machine nodes so I created some checks to avoid it.